projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b3416
)
fix emit_limple_call_ref for 0 args case
author
Andrea Corallo
<akrl@sdf.org>
Sat, 16 Nov 2019 14:23:28 +0000
(15:23 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Wed, 1 Jan 2020 10:38:05 +0000
(11:38 +0100)
src/comp.c
patch
|
blob
|
history
diff --git
a/src/comp.c
b/src/comp.c
index 9f1317ef70a8e9895b6f9ee59acab65900be0198..d05d17bd010105a1bfcdbfe2062b0dbeb609ad4b 100644
(file)
--- a/
src/comp.c
+++ b/
src/comp.c
@@
-1139,7
+1139,9
@@
emit_limple_call_ref (Lisp_Object insn, bool direct)
Lisp_Object callee = FIRST (insn);
EMACS_INT nargs = XFIXNUM (Flength (CDR (insn)));
- EMACS_INT base_ptr = XFIXNUM (CALL1I (comp-mvar-slot, SECOND (insn)));
+ EMACS_INT base_ptr = 0;
+ if (nargs)
+ base_ptr = XFIXNUM (CALL1I (comp-mvar-slot, SECOND (insn)));
return emit_call_ref (callee, nargs, comp.frame[base_ptr], direct);
}